home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19990725-20000114
/
000213_news@columbia.edu _Mon Oct 18 12:56:35 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-01-13
|
2KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA19531
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 18 Oct 1999 12:56:35 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA15486
for kermit.misc@watsun.cc.columbia.edu; Mon, 18 Oct 1999 12:41:42 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
Subject: Re: [Q] how to take an action on closing network connection OR redefine a command
From: Matt Swift <swift@alum.mit.edu>
Message-ID: <m2r9is1v15.fsf@aleph.swift.xxx>
Date: 18 Oct 1999 12:41:10 -0400
Organization: Shore.Net/Eco Software, Inc; (info@shore.net)
To: kermit.misc@columbia.edu
>>"M" == Matt Swift <swift@alum.mit.edu> writes:
>>"F" == Frank da Cruz <fdc@watsun.cc.columbia.edu> writes:
F> Before 7.0 is released, we might also be able to add an ON_CLOSE macro
F> capability, similar to the current ON_EXIT macro.
M> It seems to me that such a thing would be useful in more situations
M> than the one I described.
Even if the free ssh replacement still won't work with PIPE, the
ON_CLOSE feature would make it almost as simple to use tunnelling.
The 'tunnel' script I wrote is a very simple shell script, and could
be improved to echo to stdout the machine:port actually used for the
tunnel, rather than relying on a convention as I have so far:
; errors/failures not caught in this simple version
def isplog {
open !read tunnel start isp
assign ON_CLOSE { run tunnel stop isp }
read \%p ; e.g., localhost:9002
set host \%p /telnet
login
}
The machine echoed by 'tunnel' would always be "localhost", but maybe
in some circumstances 'tunnel' wants to tell you to go ahead and use
the actual remote machine -- maybe 'tunnel' knows it is secure or
something.